package cn.itcast.bos.service.base.impl;

import cn.itcast.bos.dao.base.AreaRepository;
import domain.base.Area;
import domain.base.Courier;
import cn.itcast.bos.service.base.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by Administrator on 2017/7/12/012.
 */
@Service
@Transactional
public class AreaServiceImpl implements AreaService {

    @Autowired
    AreaRepository areaRepository;
    @Override
    public void batchImport(List<Area> file) {
        areaRepository.save(file);
    }

    @Override
    public Page<Courier> findPageData(Specification<Courier> specification, Pageable pageable) {
        return null;
    }


    public Page<Area> findAll(Specification<Area> spec, java.awt.print.Pageable pageable) {
        return null;
    }

    @Override
    public Page<Area> findAll(Specification<Area> spec, Pageable pageable) {
        return null;
    }


    @Override
    public void save(Area entity) {

    }
}
